<template>
  <div class="about">
    <section class="banner">
      <div class="container">
        <h1>端午节的历史与文化</h1>
      </div>
    </section>
    
    <section class="content-section">
      <div class="container">
        <div class="content-grid">
          <div class="content-text">
            <h2>端午节的起源</h2>
            <p>端午节，又称端阳节、龙舟节、重午节等，是中国传统节日之一，日期在每年农历五月初五。端午节起源于中国，最初是古代百越地区崇拜龙图腾的部族举行图腾祭祀的节日，后因战国时期的楚国诗人屈原在这一天投汨罗江自尽，统治者为树立忠君爱国标签将端午作为纪念屈原的节日。</p>
            <p>端午节与春节、清明节、中秋节并称为中国四大传统节日。2006年5月，国务院将其列入首批国家级非物质文化遗产名录；2008年起，端午节被列为国家法定节假日；2009年9月，联合国教科文组织正式审议并批准中国端午节列入世界非物质文化遗产，成为中国首个入选世界非遗的节日。</p>
          </div>
          <div class="content-image">
            <img src="https://static.fotor.com.cn/assets/stickers/3551f61e-b94c-43f7-97b1-a4cf30561ca5_thumb.png" alt="端午节龙舟">
          </div>
        </div>
      </div>
    </section>
    
    <section class="customs-section">
      <div class="container">
        <h2 class="section-title">端午节习俗</h2>
        <div class="customs-grid">
          <div v-for="(custom, index) in customs" :key="index" class="custom-card">
            <div class="custom-icon">{{ custom.icon }}</div>
            <h3>{{ custom.title }}</h3>
            <p>{{ custom.description }}</p>
          </div>
        </div>
      </div>
    </section>
    
    <section class="poem-section">
      <div class="container">
        <h2 class="section-title">屈原诗词</h2>
        <div class="poem-container">
          <div class="poem-card">
            <h3>离骚</h3>
            <p>帝高阳之苗裔兮，朕皇考曰伯庸。</p>
            <p>摄提贞于孟陬兮，惟庚寅吾以降。</p>
            <p>皇览揆余初度兮，肇锡余以嘉名。</p>
            <p>名余曰正则兮，字余曰灵均。</p>
            <p>纷吾既有此内美兮，又重之以修能。</p>
            <p>扈江离与辟芷兮，纫秋兰以为佩。</p>
          </div>
        </div>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  name: 'About',
  data() {
    return {
      customs: [
        { icon: '🚣', title: '赛龙舟', description: '龙舟竞渡是端午节最具代表性的活动，源于古代楚国人划船救屈原的传说。' },
        { icon: '🍙', title: '吃粽子', description: '粽子是端午节的传统食品，用箬叶包裹糯米和各种馅料蒸制而成。' },
        { icon: '🌿', title: '挂艾草', description: '端午节期间，人们会在门前悬挂艾草和菖蒲，用以驱邪避疫。' },
        { icon: '🎐', title: '佩香囊', description: '香囊内装香料，佩戴在身上既有装饰作用，也有驱虫防病的功效。' },
        { icon: '🧵', title: '系五彩绳', description: '五彩绳系在手腕上，端午节后的第一场雨时抛入河中，象征带走疾病。' },
        { icon: '🍶', title: '饮雄黄酒', description: '古人认为雄黄酒可以驱邪解毒，端午节有饮雄黄酒的习俗。' }
      ]
    }
  }
}
</script>

<style scoped>
.banner {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('https://ts1.tc.mm.bing.net/th/id/R-C.2a937544e8ccaad381583be0da901937?rik=eLdYSXl9gNvmJg&riu=http%3a%2f%2fe0.ifengimg.com%2f11%2f2019%2f0606%2f98B8C6AA78F8CFA8A4D23EB1D9992620EFD385CE_size90_w1000_h466.jpeg&ehk=kurkcbzWRSN%2fh2OPTkXQrPyBk3HLGbZOD7YbbPUdTGk%3d&risl=&pid=ImgRaw&r=0');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.banner h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.content-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.content-text h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.content-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.content-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.customs-section {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.customs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.custom-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.custom-card:hover {
  transform: translateY(-10px);
}

.custom-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.custom-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.poem-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.poem-container {
  display: flex;
  justify-content: center;
}

.poem-card {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  text-align: center;
}

.poem-card h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.poem-card p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 2;
}

@media (max-width: 768px) {
  .banner h1 {
    font-size: 2rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .content-image {
    order: -1;
  }
}
</style>